/* This file was generated with JastAdd2 (http://jastadd.org) version R20121112 (r872) */
package parser;

import icode.*;
import util.*;
import semanticlib.SymbolTable;
/**
 * @production Id : {@link Exp} ::= <span class="component">&lt;ID:String&gt;</span>;
 * @ast node
 * @declaredat /h/d6/h/int12psh/workspace/CalcCode/specification/MiniP.ast:21
 */
public abstract class Id extends Exp implements Cloneable {
  /**
   * @apilevel low-level
   */
  public void flushCache() {
    super.flushCache();
  }
  /**
   * @apilevel internal
   */
  public void flushCollectionCache() {
    super.flushCollectionCache();
  }
  /**
   * @apilevel internal
   */
  @SuppressWarnings({"unchecked", "cast"})
  public Id clone() throws CloneNotSupportedException {
    Id node = (Id)super.clone();
    return node;
  }
  /**
   * @ast method 
   * 
   */
  public Id(int i) {
    super(i);
  }
  /**
   * @ast method 
   * 
   */
  public Id(MiniP p, int i) {
    this(i);
    parser = p;
  }
  /**
   * @ast method 
   * 
   */
  public Id() {
    this(0);


  }
  /**
   * @ast method 
   * 
   */
  public Id(String p0) {
    setID(p0);
  }
  /**
   * @ast method 
   * 
   */
  public void dumpTree(String indent, java.io.PrintStream pStream) {
    pStream.println(indent + "Id"+ "\"" + getID() + "\"");
        String childIndent = indent + "  ";
    for(int i = 0; i < getNumChild(); i++)
      getChild(i).dumpTree(childIndent, pStream);
  }
  /**
   * @ast method 
   * 
   */
  public Object jjtAccept(MiniPVisitor visitor, Object data) {
    return visitor.visit(this, data);
  }
  /**
   * @ast method 
   * 
   */
  public void jjtAddChild(Node n, int i) {
    checkChild(n, i);
    super.jjtAddChild(n, i);
}
  /**
   * @ast method 
   * 
   */
  public void checkChild(Node n, int i) {
  }
  /**
   * @apilevel low-level
   * @ast method 
   * 
   */
  public int getNumChild() {
    return 0;
  }
  /**
   * Replaces the lexeme ID.
   * @param value The new value for the lexeme ID.
   * @apilevel high-level
   * @ast method 
   * 
   */
  public void setID(String value) {
    tokenString_ID = value;
  }
  /**
   * @apilevel internal
   * @ast method 
   * 
   */
  
  /**
   * @apilevel internal
   */
  protected String tokenString_ID;
  /**
   * Retrieves the value for the lexeme ID.
   * @return The value for the lexeme ID.
   * @apilevel high-level
   * @ast method 
   * 
   */
  public String getID() {
    return tokenString_ID != null ? tokenString_ID : "";
  }
}
